package cn.tedu.submarine;

import javax.swing.*;

//炸弹
public class Bomb extends SeaObject{


    public Bomb(int x, int y){
        super(9,12,x,y,3);

    }
    public void step(){
        y += speed;
    }
    public ImageIcon getImage(){
        if (isLive()){
            return Images.bomb;
        }else {
            return null;
        }
    }

    public boolean isOutOfBounds(){//检测深水炸弹越界
        return this.y>=World.HEIGHT;
    }

}
